package com.lh.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.api.form.AddExpressForm;
import com.lh.api.form.AfterSaleForm;
import com.lh.api.form.RefundForm;
import com.lh.api.vo.AfterSaleDetailVo;
import com.lh.api.vo.AfterSaleListVo;
import com.lh.api.vo.ReasonListVo;
import com.lh.common.entity.admin.OrderAfterSale;
import com.lh.common.enums.ReasonEnum;
import com.lh.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * @author gze
 * @ClassName:
 * @Description: 售后订单
 * @date: 2020-05-21 09:56
 */
public interface OrderAfterSaleService extends IService<OrderAfterSale> {
    void createRefund(RefundForm refundForm, Long userId);

    void createAfterSale(AfterSaleForm afterSaleForm, Long userId);

    PageUtils<AfterSaleListVo> getList(Map<String, Object> params, Integer pageNum, Integer pageSize);

    AfterSaleDetailVo getAfterSaleDetail(String afterSaleId, Long userId);

    void fillLogistics(AddExpressForm addExpressForm, Long userId);

    void delAfterSale(Long userId, String afterSaleId);

    List<ReasonListVo> getReasonList(ReasonEnum reasonType);
}

